var e = require("../../@babel/runtime/helpers/interopRequireDefault"), n = e(require("../../@babel/runtime/regenerator")), t = require("../../@babel/runtime/helpers/asyncToGenerator"), o = new (e(require("../../http/message")).default)();

Page({
    data: {
        content: []
    },
    onLoad: function(e) {
        this.getMessageContent(e.messageType, e.noticeDetailId);
    },
    getMessageContent: function(e, r) {
        var a = this;
        return t(n.default.mark(function t() {
            var u;
            return n.default.wrap(function(n) {
                for (;;) switch (n.prev = n.next) {
                  case 0:
                    if ("undefined" != r) {
                        n.next = 3;
                        break;
                    }
                    return wx.showToast({
                        title: "当前暂无消息通知",
                        icon: "none",
                        duration: 2e3
                    }), n.abrupt("return");

                  case 3:
                    return n.next = 5, o.messageContent(e, r);

                  case 5:
                    u = n.sent, a.setData({
                        content: u.data
                    });

                  case 7:
                  case "end":
                    return n.stop();
                }
            }, t);
        }))();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    getPhoneNumber: function(e) {
        console.log(e);
    },
    getUserInfo: function(e) {
        console.log(e);
    }
});